﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Net;

namespace RedditWP.Reddit
{
    public class SubmissionData
    {
        public string domain {get; set;}
        public SubmissionMediaEmbed media_embed {get; set;}

        public string levenshtein {get; set;}
        public string subreddit {get; set;}
        public string selftext_html {get; set;}
        public string selftext {get; set;}
        public string likes {get; set;}
        public bool saved {get; set;}
        public string id {get; set;}
        public bool clicked {get; set;}
        public string author {get; set;}
        public SubmissionMedia media {get; set;}
        public int score {get; set;}
        public bool over_18 {get; set;}
        public bool hidden {get; set;}
        public string thumbnail {get; set;}
        public string subreddit_id {get; set;}
        public int downs {get; set;}
        public bool is_self {get; set;}
        public string permalink {get; set;}
        public string name {get; set;}
        public double created {get; set;}
        public string url {get; set;}

        private string _title;
        public string title
        {
            get { return _title; }
            set
            {
                _title = HttpUtility.HtmlDecode(value);
            }
        }
        public double created_utc {get; set;}
        public int num_comments {get; set;}
        public int ups {get; set;}
    }
}
